<?
error_reporting(E_ALL ^ E_NOTICE); 
$page = $_POST['page'];
$val1 = $_POST['val1'];
$rp = $_POST['rp'];
if(!$rp)$rp=10;
$sortname = $_POST['sortname'];
$sortorder = $_POST['sortorder'];

$total = 300;

header("Expires: Mon, 26 Jul 2011 05:00:00 GMT" ); 
header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); 
header("Cache-Control: no-cache, must-revalidate" ); 
header("Pragma: no-cache" );
header("Content-type: text/xml");
$xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$xml .= "<rows>";
$xml .= "<page>$page</page>";
$xml .= "<total>$total</total>";
for($i=0;$i<$rp;$i++){
	$xml .= "<row id='id".$i."'>";
	$xml .= "<cell><![CDATA[".$page.$i."]]></cell>";		
	$xml .= "<cell><![CDATA[".$sortname.$i."]]></cell>";				
	$xml .= "<cell><![CDATA[".$sortorder.$i."]]></cell>";		
	$xml .= "<cell><![CDATA[".$rp.$i."]]></cell>";		
	$xml .= "<cell><![CDATA[".$val1."]]></cell>";		
	$xml .= "</row>";		
}

$xml .= "</rows>";
echo $xml;
?>